import request from '@/utils/request'

// 查询影片信息列表
export function listMovie(query) {
  return request({
    url: '/cinema/cinema/movie/list',
    method: 'get',
    params: query
  })
}

// 查询影片信息详细
export function getMovie(movieId) {
  return request({
    url: '/cinema/cinema/movie/' + movieId,
    method: 'get'
  })
}

// 新增影片信息
export function addMovie(data) {
  return request({
    url: '/cinema/cinema/movie',
    method: 'post',
    data: data
  })
}

// 修改影片信息
export function updateMovie(data) {
  return request({
    url: '/cinema/cinema/movie',
    method: 'put',
    data: data
  })
}

// 删除影片信息
export function delMovie(movieId) {
  return request({
    url: '/cinema/cinema/movie/' + movieId,
    method: 'delete'
  })
}

// 导出影片信息
export function exportMovie(query) {
  return request({
    url: '/cinema/cinema/movie/export',
    method: 'get',
    params: query
  })
}